
export let timeAdapter: { adapter: ITimerAdapter } = { adapter: undefined };

export interface ITimerAdapter {
  createHandle(): any;
  pause(handle: any): void;
  resume(handle: any): void;
  start(handle: any, timeout: number, periodic: boolean, handlerFunc: (this: void) => void): void;
  showDialog(handle: any, text: string): any
  destroy(timer: any, dialog: any): void;
  bindHandle(handle: any): void;
  equal(handle1: any, handle2: any): boolean
  getRemaining(handle: any): number
  isValid(handle: any): boolean
}
